package com.service.tools;

public class ByteTools {

	/**
	 * 检查32位整形数的某一位是几
	 * @param val
	 * @param index
	 * @return
	 */
    public static String getIndexOfByteFromInt(long val,int index){
    	if(((byte)(val>>index)&0x01)>0){
    		return "1";
    	} else {
    		return "0";
    	}
	}
	
}
